package com.banach.prema.repository.dataobject;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * 紧急情况
 * @author ajun
 *
 */
@TableName("bnh_sos")
public class SosDO {
	private Long id;
	private String type;//110,120,119
	private Double lat;//求救纬度
	private Double lng;//求救经度

	private String province;//所属省份
	private String city;//所属城市
	private String district;//所属区划
	private String adcode;//所属区划代码
	private String street;//所属道路（街道）
	private String streetNum;//街道号
	@TableField(value = "user_id",fill = FieldFill.INSERT)
	private Long userId;//求救人

	private String userName;//求救人

	private String mobile;

	private LocalDateTime createTime;//创建时间

	private LocalDateTime updateTime;//更新时间

	private LocalDateTime endTime;//结束时间

	private String groupId;//创建群组

	private String status;//状态0为求救中，1为已结束

	private boolean deleted;

	public Long getId() {
		return id;
	}

	public SosDO setId(Long id) {
		this.id = id;
		return this;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAdcode() {
		return adcode;
	}

	public void setAdcode(String adcode) {
		this.adcode = adcode;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getStreetNum() {
		return streetNum;
	}

	public void setStreetNum(String streetNum) {
		this.streetNum = streetNum;
	}

	public Long getUserId() {
		return userId;
	}

	public SosDO setUserId(Long userId) {
		this.userId = userId;
		return this;
	}

	public String getUserName() {
		return userName;
	}

	public SosDO setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public SosDO setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
		return this;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public SosDO setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public LocalDateTime getEndTime() {
		return endTime;
	}

	public SosDO setEndTime(LocalDateTime endTime) {
		this.endTime = endTime;
		return this;
	}

	public String getGroupId() {
		return groupId;
	}

	public SosDO setGroupId(String groupId) {
		this.groupId = groupId;
		return this;
	}

	public String getStatus() {
		return status;
	}

	public SosDO setStatus(String status) {
		this.status = status;
		return this;
	}

	public String getMobile() {
		return mobile;
	}

	public SosDO setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public SosDO setDeleted(boolean deleted) {
		this.deleted = deleted;
		return this;
	}
}
